function score1 = online_Pred(data_seg,model)
    data_seg([2 5 6 7 9 12 13 16 18],:)=[]; %% bad channel
    data_ca = mean(data_seg,1); %% common average
    data_seg = data_seg-repmat(data_ca,[51,1]); %% common average re-reference

    psd_fft = fft(data_seg,[],2);
    band1 = mean(abs(psd_fft(:,6:15)),2); %% 10-30Hz
    band2 = mean(abs(psd_fft(:,21:76)),2); %% 40-150Hz
    feature_vector = [band1;band2]';
    [~,scores] = model.predictFcn(feature_vector);
    score1 = scores(2);
return